package net.lzzy.practices.services;


import net.lzzy.practices.constants.Messages;
import net.lzzy.practices.entities.Course;

import java.util.List;
import java.util.UUID;

/****
 * @author zly on 2022/5/19
 * Description:
 */
public interface CourseService {
    List<Course> get();
    List<Course> get(boolean open);
    List<Course> get(int page,int size);
    List<Course> get(boolean open, int page,int size);
    Integer count();

    Integer count(boolean open);
    Course getById(UUID id);
    List<Course> getTeachersCourses(UUID teacherid);
    List<Course> getStudentsCourses(UUID studentid);
    Course add(Course course);
    Course update(Course course,String token);
    Course openCloseCourse(UUID id,boolean open,String token);
    Messages remove(UUID id, String token);
}
